class Hero {
    constructor(name, skill) {
        this.name = name 
        this.skill = skill
    }
    fn() {
        alert(`${this.name}使用了${this.skill}`)
        console.log(this)
    }
}
export default Hero